<?php
declare(strict_types=1);

/**
 * @project: 兔兔找图微信小程序
 * @author: kert
 * @date: 2023/5/16
 * @link: https://www.qqdeveloper.com/
 * @site: 微信搜索-兔兔找图
 */

namespace App\Http\Requests\Ai;

use Illuminate\Foundation\Http\FormRequest;

class BaiduAiRecognitionValidate extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            "scene" => "required",
            "imageUrl" => "required|url",
        ];
    }

    public function messages(): array
    {
        return [
            "scene.required" => "场景不存在",
            "imageUrl.required" => "图片不能为空",
            "imageUrl.url" => "图片格式不正确",
        ];
    }
}
